package com.qd.panda.model;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 用户银行卡
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_user_bank")
public class UserBank extends Model<UserBank> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private String userId;
    /**
     * 收款户名
     */
    @TableField("user_name")
    private String userName;
    /**
     * 收款卡号
     */
    @TableField("card_number")
    private String cardNumber;
    /**
     * 开户银行
     */
    @TableField("open_bank")
    private String openBank;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private LocalDateTime addTime;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    public void freeData() {
        this.userId = null;
        this.userName = null;
        this.cardNumber = null;
        this.openBank = null;
        this.addTime = null;
        this.updateTime = null;
    }

}
